<style>
#duzniciMonthlyReport tr td[onclick]{
	cursor:pointer;
}
#duzniciMonthlyReport tr td[onclick]:hover{
	background:{{$highlight}};
	color:{{$highlighttext}};
}
#duzniciHistoryAlert li i{
	font-family:"Trebuchet MS";
}
</style>
<form class="area" action="javascript:void(0)" onsubmit="submitForm(this,'duznici.php','POST','setContent')">
	<input type="hidden" name="a" value="monthreport" />
	
	<label class="left" for="date">Datum</label>
	<input type="text" name="date" id="date" value="{{$date}}" />
	<input type="button" class="datePicker" onclick="displayDatePicker('date',this)" />
	
	<input type="submit" value="traži..." />
</form><br clear="all" />
<div class="area" style="margin-top:2px; max-width:650px; overflow:auto; font-size:10px;" id="duzniciMonthlyReport">
	{{$comment_start}}
	<a style="float:right;" onclick="var mw=parseInt(this.parentNode.style.maxWidth); var w=parseInt(this.parentNode.style.width); w=w>0?w:mw; if(w==mw){this.parentNode.style.width=20+'px'; this.innerHTML='&gt;&gt;';}else{this.parentNode.style.width=mw+'px'; this.innerHTML='&lt;&lt;'}" href="javascript:void(0)">&lt;&lt;</a>
	<span style="font-size:11px; color:#aaa">{{$info}}</span>
	<table width="100%">
		<tr class="head" align="center">
			<td>ugovor</td>
			<td>komitent</td>
			<td>plan</td>
			<td>otplata</td>
			<td>poslednja otplata</td>
			<td>dug</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		{{%loop start num}}
		<tr>
			<td>{{$ugovor}}</td>
			<td>{{$komitent}}</td>
			<td align="right" onclick="var dat=trim('{{$plan_datumi}}'); if(dat.length){alert(dat)}">{{$plan}}</td>
			<td align="right" title="otplaćeno:&nbsp;{{$otplata_perc}}&#37;" onclick="var dat=trim('{{$otplata_datumi}}'); if(dat.length){alert(dat)}">{{$otplata}}</td>
			<td align="right">{{$poslednja_otplata}}{{$poslednja_otplata_datum}}</td>
			<td align="right">{{$dug}}</td>
			<td>{{$history}}</td>
			<td><a href="javascript:void(0)" onclick="duzniciCopyTableRow(this.parentNode.parentNode,'duzniciTasklistTable')" title="Dodaj u današnju listu poziva...">&gt;&gt;&gt;</a></td>
		</tr>
		{{%loop end}}
	</table>
</div>
<div class="area" style="margin:2px 0px 0px 2px; max-width:450px; overflow:auto; font-size:10px;">
	<a style="float:right;" href="javascript:void(0)" onclick="duzniciTaskListRemoveDuplicates('duzniciTasklistTable')">obriši duplikate</a>
	<h3>Današnja lista</h3>
	<table id="duzniciTasklistTable">
		<tr class="head" align="center">
			<td>ugovor</td>
			<td>komitent</td>
			<td>plan</td>
			<td>otplata</td>
			<td>poslednja otplata</td>
			<td>dug</td>
			<td><a style="color:#fff;" href="javascript:void(0);" onclick="duzniciTaskListRemoveAll(this.parentNode.parentNode.parentNode)">obriši sve</a></td>
		</tr>
	</table>
	{{$comment_end}}
</div>